package com.jeesite.modules.utils.SMS;

import com.alibaba.fastjson.JSONObject;
import com.jeesite.common.web.http.HttpClientUtils;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;

public class SMSUtil {

    public static JSONObject sendMobileCodeSMS(String mobile,String code){
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("mobile",mobile);
        jsonObject.put("code",code);
        jsonObject.put("name","网维先锋");
        jsonObject.put("expMinute","5");
        jsonObject.put("templateId","33141");

        String s = HttpClientUtils.ajaxPostJson("https://fc-mp-aab76c90-575c-4e17-876f-d46a7cde3e12.next.bspapp.com/send", jsonObject.toJSONString());

        return JSONObject.parseObject(s);
    }
}
